package strategy.pay;

public class Order {
    private String uid;
    private String oid;
    private double money;

    public Order(String uid, String oid, double money) {
        this.uid = uid;
        this.oid = oid;
        this.money = money;
    }

    public MsgResult pay(){
        return null;
    }

    public MsgResult pay(String key){
        Payment payment=PaymentStrategy.getPayment(key);
        MsgResult pay = payment.pay(uid, money);
        System.out.println("欢迎您使用"+payment.getName());
        System.out.println("开始支付"+money);
       return pay;
    }
}
